﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/Admin/_AdminLayout.cshtml";
}
@model IEnumerable<BabyToys.Models.Menu>
<div id="content" class="span10">
    <!-- content starts -->
    <div>
        <ul class="breadcrumb">
            <li>
                <a href="#">Home</a> <span class="divider">/</span>
            </li>
            <li>
                <a href="#">Danh sách sản phẩm</a>
            </li>
        </ul>
    </div>
    <div class="row-fluid sortable">
        <div class="box span12">
            <div class="box-content">
                
                    <div class="row-fluid">
                        <div style="float:left;">
                            <a href="~/adminmenu/themmoi" class="btn btn-large btn-success">
                                <i class="icon-plus icon-white"></i>
                                Thêm mới
                            </a>
                        </div>
                        <div style="float:right;margin-right:20px;">
                            
                          </div>
                    </div>
                    <div style="height:10px;"></div>
                        <table class="table table-striped table-bordered bootstrap-datatable datatable">
                            <thead>
                                <tr>
                                    <th>ID</th>
                                    <th>Tiêu đề</th>
                                    <th></th>
                                </tr>
                            </thead>
                            <tbody>
                                @foreach (var menu in Model)
                                {
                                    <tr>
                                        <td>@menu.Id</td>
                                        <td>@menu.TieuDe</td>
                                        <td>
                                            <a href="~/adminmenu/xoa/@menu.Id" class="btn btn-inverse">
                                            <i class=""></i>
                                                Xóa                                           
									        </a>

                                            <a href="~/Adminmenu/sua/@menu.Id" class="btn btn-info">
                                                <i class="icon-edit icon-white"></i>
                                                Sửa
                                            </a>
                                        </td>
                                    </tr>
                                    
                                }
                            </tbody>
                        </table>
                    
                
            </div>
        </div>
    </div>
</div>



